package com.jiyun.order.controller;


import com.jiyun.order.service.IRegionService;
import com.jiyun.orders.pojo.Region;
import com.jiyun.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * <p>
 * 地区信息表 前端控制器
 * </p>
 *
 * @author 1823.
 * @since 2025-02-13
 */
@RestController
@RequestMapping("/region")
public class RegionController {

    @Autowired
    private IRegionService regionService;

    /**
     * 查询地区列表
     * @param parentCode
     * @return
     */
//    @GetMapping("/findByParentCode/{parentCode}")
//    public Result<List<Region>> findByParentCode(@PathVariable("parentCode") String parentCode){
//        List<Region> regions = regionService.findByParentCode(parentCode);
//        return Result.ok(regions);
//    }
}
